<!-- 修改帖子 -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header">
    <meta charset="UTF-8">
	<title>帖子添加类型</title>
	<link rel="stylesheet" th:href="@{../css/bootstrap.min.css}"/>
</head>
<body>
	<div>
		
	</div>
	<br><br><br>
	<div class="container" style="text-align: center;">
		
		<div class="btn-primary" style="width: 70%; height: 60px; padding-left:200px;">
			<h3 align="center">添加帖子</h3>
		</div><br>
		
		<form th:action="@{""}"
		name="" method="post"
		th:object="${}"
		class="form-horizontal"
		enctype="multipart/form-data"
		>
		
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">帖子名称</label>
				<div class="col-sm-4 col-md-4">
					<input type="text" class="form-control"
					placeholder="请输入标题"
					th:field="*{}"/>
				</div>
			</div>
			
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">简介</label>
				<div class="col-sm-4 col-md-4">
					<input type="text" class="form-control"
					placeholder="请输入帖子简介"
					th:field="*{}"/>
				</div>
			</div>
			
			
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">帖子图片</label>
				<div class="col-sm-4 col-md-4">
					<input type="file" placeholder="请选择帖子图片" class="form-control" name=""/>
				</div>
			</div>
			
			
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">是否推荐</label>
				<div class="col-sm-4 col-md-4 radio">
					<label>
						<input type="radio" th:field="*{}" value="1"/>是
					</label>
					<label>
						<input type="radio" th:field="*{}" value="0"/>否
					</label>
				</div>
			</div>
			
			
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">是否广告</label>
				<div class="col-sm-4 col-md-4 radio">
					<label>
						<input type="radio" th:field="*{}" value="1"/>是
					</label>
					<label>
						<input type="radio" th:field="*{}" value="0"/>否
					</label>
				</div>
			</div>
			
			
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label">帖子类型</label>
				<div class="col-sm-4 col-md-4">
					<select class="form-control" th:field="*{}">
						<option th:each="" th:value="" th:text=""></option>
					</select>
				</div>
			</div>
			
			
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-success">添加</button>
					<button type="reset" class="btn btn-primary">重置</button>
				</div>
			</div>
			
			
		</form>
	</div>
</body>
</html>